package com.swp.oa.sys.pojo;

import java.util.Date;
import java.util.List;

public class User {
    private String userid;

    private String username;

    private String upassword;

    private String pwdsalt;

    private String pwshash;

    private String gender;

    private String realname;

    private String email;

    private String mobile;

    private String userstatus;

    private Date createdate;

    private String createuser;

    private String updateuser;

    private Date updatedate;

    private Integer version;

    private String workpath; //工作路径

    private String issecrecy; //保密用户标识
    
    private Date lastupdatepwddate;

    private Integer updatepwdcycle;
    
    private String authjsondata;
    
    private List<Role> roles;
    
    private Role role;
        
    private List<Department> departments;
    
    
	public List<Department> getDepartments() {
		return departments;
	}

	public void setDepartments(List<Department> departments) {
		this.departments = departments;
	}


	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	
	//自动
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public String getPwdsalt() {
        return pwdsalt;
    }

    public void setPwdsalt(String pwdsalt) {
        this.pwdsalt = pwdsalt;
    }

    public String getPwshash() {
        return pwshash;
    }

    public void setPwshash(String pwshash) {
        this.pwshash = pwshash;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserstatus() {
        return userstatus;
    }

    public void setUserstatus(String userstatus) {
        this.userstatus = userstatus;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getWorkpath() {
		return workpath;
	}

	public void setWorkpath(String workpath) {
		this.workpath = workpath;
	}

	public String getIssecrecy() {
		return issecrecy;
	}

	public void setIssecrecy(String issecrecy) {
		this.issecrecy = issecrecy;
	}

	public Date getLastupdatepwddate() {
		return lastupdatepwddate;
	}

	public void setLastupdatepwddate(Date lastupdatepwddate) {
		this.lastupdatepwddate = lastupdatepwddate;
	}

	public Integer getUpdatepwdcycle() {
		return updatepwdcycle;
	}

	public void setUpdatepwdcycle(Integer updatepwdcycle) {
		this.updatepwdcycle = updatepwdcycle;
	}

	public String getAuthjsondata() {
        return authjsondata;
    }

    public void setAuthjsondata(String authjsondata) {
        this.authjsondata = authjsondata;
    }

	@Override
	public String toString() {
		return "User [userid=" + userid + ", username=" + username
				+ ", upassword=" + upassword + ", pwdsalt=" + pwdsalt
				+ ", pwshash=" + pwshash + ", gender=" + gender + ", realname="
				+ realname + ", email=" + email + ", mobile=" + mobile
				+ ", userstatus=" + userstatus + ", createdate=" + createdate
				+ ", createuser=" + createuser + ", updateuser=" + updateuser
				+ ", updatedate=" + updatedate + ", version=" + version
				+ ", workpath=" + workpath + ", issecrecy=" + issecrecy
				+ ", lastupdatepwddate=" + lastupdatepwddate
				+ ", updatepwdcycle=" + updatepwdcycle + ", authjsondata="
				+ authjsondata + "]";
	}
    
}